<?php

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>[site_name] - [page_title]</title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="[web-gallery]/v2/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="Habbo: RSS" href="http://www.habbo.es/articles/rss.xml" />

<?=$tpl->head[1]?>


<link rel="stylesheet" href="[www]/styles/local/com.css" type="text/css" />
<script src="[www]/js/local/com.js" type="text/javascript"></script>

<script type="text/javascript">
var ad_keywords = "";
var ad_key_value = "";
</script>
<script type="text/javascript">
document.habboLoggedIn = <?=(LOGGED_IN ? 'true' : 'false')?>;
var habboName = <?=(LOGGED_IN ? '"' . $userdata['username'] . '"' : 'null')?>;
var habboId = <?=(LOGGED_IN ? $userdata['id'] : 'null')?>;
var habboReqPath = "";
var habboStaticFilePath = "[web-gallery]";
var habboImagerUrl = "[www]/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "[www]/client";
var Lang = [hlang];
window.name = "habboMain";
if (typeof HabboClient != "undefined") {
    HabboClient.windowName = "21244cd5975d795fe8bedf21fd0ccaf37cbec69e";
    HabboClient.maximizeWindow = true;
}
</script type="text/javascript">

<script>

</script>

<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />

<meta property="fb:app_id" content="<?=$cms_config['facebook_appId']?>" />

<meta property="og:site_name" content="Habbo Hotel" />
<meta property="og:title" content="Habbo: %meta_title%" />
<meta property="og:url" content="[www]" />
<meta property="og:locale" content="es_ES" />

<?=$tpl->head[2]?>


<meta name="description" content="%meta_description%" />
<meta name="keywords" content="%meta_keywords%" />


<!--[if IE 8]>
<link rel="stylesheet" href="[web-gallery]/static/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="[web-gallery]/static/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="[web-gallery]/static/styles/ie6.css" type="text/css" />
<script src="[web-gallery]/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>

<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="[web_version]" />
</head>

<body id="<?=$tpl->vars['page_body']?>"<?php if($tpl->vars['page_class']) { ?> class="<?=$tpl->vars['page_class']?>"<?php } ?>>
    
<?php if($_SESSION['login']['error_captcha'] >= 4) { ?>
<head>
    <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
</head>
<?php } ?>
    
<?php if(!LOGGED_IN) { ?>
<div id="overlay"></div>
<?php if($tpl->vars['quickregister_step'] != null) { ?><img src="[web-gallery]/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" /><?php } ?>

<div id="change-password-form" style="display: none;">
    <div id="change-password-form-container" class="clearfix">
        <div id="change-password-form-title" class="bottom-border">%forgot_password%</div>
        <div id="change-password-form-content" style="display: none;">
            <form method="post" action="<?=HTTPS?>/account/password/identityResetForm" id="forgotten-pw-form">
                <input type="hidden" name="page" value="/?changePwd=true" />
                <span>%forgot_msg1%</span>
                <div id="email" class="center bottom-border">
                    <input type="text" id="change-password-email-address" name="emailAddress" value="" class="email-address" maxlength="48"/>
                    <div id="change-password-error-container" class="error" style="display: none;">%forgot_msg2%</div>
                </div>
            </form>
            <div class="change-password-buttons">
                <a href="#" id="change-password-cancel-link">%forgot_cancel%</a>
                <a href="#" id="change-password-submit-button" class="new-button"><b>%forgot_send%</b><i></i></a>
            </div>
        </div>
        <div id="change-password-email-sent-notice" style="display: none;">
            <div class="bottom-border">
                <span>%forgot_msg3%<br>
<br>

%forgot_msg4%</span>
                <div id="email-sent-container"></div>
            </div>
            <div class="change-password-buttons">
                <a href="#" id="change-password-change-link">%forgot_back%</a>
                <a href="#" id="change-password-success-button" class="new-button"><b>%forgot_ok%</b><i></i></a>
            </div>
        </div>
    </div>
    <div id="change-password-form-container-bottom"></div>
</div>

<script type="text/javascript">
HabboView.add( function() {
     ChangePassword.init();
});
</script>
<?php } ?>